package com.aegis.common.validation.annotation;

import com.aegis.common.validation.validator.MobileValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @Author renogo
 *
 * @Version 1.0
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = MobileValidator.class
)
public @interface Mobile {



    /**
     * 缺少报错：XXX contains Constraint annotation, but does not contain a message parameter
     **/
    String message() default "";

    /**
     * 缺少报错：XXX contains Constraint annotation, but does not contain a groups parameter
     **/
    Class<?>[] groups() default {};

    /**
     * 缺少报错：XXX contains Constraint annotation, but does not contain a payload parameter
     **/
    Class<? extends Payload>[] payload() default { };

}
